body {
  margin: 0;
  padding: 0;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

body div {
  width: 50%;
  height: auto;
}

body #text {
  color: white;
  text-transform: uppercase;
  font-size: 4rem;
  text-align: center;
  letter-spacing: 1rem;
}

body #text::before {
  content: attr(data-text);
  color: #ff00c1;
  width: 50%;
  z-index: -1;
  position: absolute;
  left: 320px;
  top: 220px;
  animation: glitch-effect 3s infinite;
}

body #text::after {
  content: attr(data-text);
  color: #3498db;
  width: 50%;
  z-index: -2;
  position: absolute;
  left: 320px;
  top: 220px;
  animation: glitch-effect 2s infinite;
}

@keyframes glitch-effect {
  0% {
    left: 318px;
    top: 218px;
  }
  25% {
    left: 322px;
    top: 220px;
  }
  50% {
    left: 319px;
    top: 222px;
  }
  75% {
    left: 319px;
    top: 219px;
  }
  100% {
    left: 320px;
    top: 218px;
  }
}
